package com.feituan.wx.controller;

import com.feituan.core.pojo.entity.VipFission;
import com.feituan.core.pojo.response.Response;
import com.feituan.core.service.IVipFissionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/vipFission")
@Api("会员裂变")
public class VipFissionController extends BaseController{
    @Autowired
    private IVipFissionService vipFissionService;
    /**
     * 会员裂变
     * @param vipFission vipFission
     */
    @PostMapping("/saveVipFission")
    @ApiOperation("会员裂变")
    public Response<Boolean> saveVipFission(VipFission vipFission) {
        return response(vipFissionService.saveVipFission(vipFission));
    }
}
